
package cn.edu.scau.cmi.chenzehan.hibernateframe.POJO;

import java.util.HashSet;
import java.util.Set;

public class Tutor {

	private int tutorID;
	private String name;
	private Set<Student> students = new HashSet<Student>();
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Tutor(int tutorID, String name) {
		
		this.tutorID = tutorID;
		this.name = name;
	}
	public Set<Student> getStudents() {
		return students;
	}
	public void setStudents(Set<Student> students) {
		this.students = students;
	}
	
	public Tutor(int tutorID, String name, Set<Student> students) {
		super();
		this.tutorID = tutorID;
		this.name = name;
		this.students = students;
	}
	public int getTutorID() {
		return tutorID;
	}
	public void setTutorID(int tutorID) {
		this.tutorID = tutorID;
	}
	public Tutor() {
		
	}
	@Override
	public String toString() {
		return "Tutor [tutorID=" + tutorID + ", name=" + name + "]";
	}
	
	
}
